package com.java.grammer.constructer.exer2;

/**
 * @author luzhikun
 * @date 2020/11/29- 11:17
 */
public class RectangleTest {
    public static void main(String[] args) {
        Rectangle re = new Rectangle(2.2, 3.2);
        System.out.println("这个长方形的面积为：" + re.area());
        System.out.println("这个长方形的周长为：" + re.perimeter());
        Rectangle c1 = new Rectangle();
        c1.setLegth(5);
        c1.setWide(16);
        c1.getWide();
        c1.getLegth();
        System.out.println("这个长方形的面积为：" + c1.getLegth() + "  这个长方形的周长为：" + c1.getWide());
    }
}
